package com.community.shop.entity.vo;

import lombok.Data;

import java.util.List;

/**
 * 地区vo实体类
 */
@Data
public class AddressSecondVo {

    /**
     * 唯一键
     */
    private String code;
    /**
     * 名称
     */
    private String name;
    /**
     * 县级
     */
    private List<AddressSecondVo> cchilds;

    /**
     * 父级区域code
     */
    private String pid;

    public AddressSecondVo() {
    }

    public AddressSecondVo(String code, String name, List<AddressSecondVo> cchilds, String pid) {
        this.code = code;
        this.name = name;
        this.cchilds = cchilds;
        this.pid = pid;
    }
}
